package org.proxywars.engine.rts.tests;

import org.proxywars.engine.rts.Framework;

public class TestEngine {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Framework framework = Framework.getInstance();
		
		HumanPlayer player = new HumanPlayer();
		framework.addParty( player );
		
		HeadQuarterBuilding headQuarters = new HeadQuarterBuilding(player);
		player.addUnit(headQuarters);
		
		headQuarters.addCommand( new CreateSoldier(100 ) );
		
		while( true )
		{
			framework.process();
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
